package net.starwifi.duobao.utils.kd;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2015/12/23.
 */
public class KuaiDiDTO implements Serializable {

    private String EBusinessID;

    private String OrderCode;

    private String ShipperCode;

    private String LogisticCode;

    private Boolean Success;

    private String Reason;

    private String State;

    private List<KuaiDiTracesDTO> Traces=new ArrayList<KuaiDiTracesDTO>();


    public static KuaiDiDTO parse(String json){
        if(json==null){
            return null;
        }
        if(json.trim().equals("")){
            return null;
        }
        KuaiDiDTO dto =new KuaiDiDTO();
        GsonBuilder gb=new GsonBuilder();
        Gson gson=gb.create();
        try {
            dto =gson.fromJson(json,KuaiDiDTO.class);
        }catch (Exception e){
            e.printStackTrace();
        }
        return dto;
    }

    public String getEBusinessID() {
        return EBusinessID;
    }

    public void setEBusinessID(String EBusinessID) {
        this.EBusinessID = EBusinessID;
    }

    public String getOrderCode() {
        return OrderCode;
    }

    public void setOrderCode(String orderCode) {
        OrderCode = orderCode;
    }

    public String getShipperCode() {
        return ShipperCode;
    }

    public void setShipperCode(String shipperCode) {
        ShipperCode = shipperCode;
    }

    public String getLogisticCode() {
        return LogisticCode;
    }

    public void setLogisticCode(String logisticCode) {
        LogisticCode = logisticCode;
    }

    public Boolean getSuccess() {
        return Success;
    }

    public void setSuccess(Boolean success) {
        Success = success;
    }

    public String getReason() {
        return Reason;
    }

    public void setReason(String reason) {
        Reason = reason;
    }

    public String getState() {
        return State;
    }

    public void setState(String state) {
        State = state;
    }

    public List<KuaiDiTracesDTO> getTraces() {
        return Traces;
    }

    public void setTraces(List<KuaiDiTracesDTO> traces) {
        Traces = traces;
    }
}
